package mwn.droidbus.ui;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

import mwn.droidbus.elements.Bus;

/**
 * 
 * An OverlayItem extension to encapsulate a Bus
 *
 */
public class BusOverlayItem extends OverlayItem {
	
	private Bus b = null;
	
	public BusOverlayItem(GeoPoint arg0, String arg1, String arg2) {
		super(arg0,arg1,arg2);
	}
	
	public BusOverlayItem(Bus b, GeoPoint arg0, String arg1, String arg2) {
		super(arg0,arg1,arg2);
		this.b = new Bus(b);
	}

	public Bus getBus() {
		return b;
	}
	
	public void setBus(Bus b) {
		this.b = new Bus(b);
	}
	
}
